const { series, parallel } = require('gulp');
const {
  css,
  compressImages,
  clean,
  copyImages,
  js,
  serve,
  watchFiles,
  template,
  copyFonts,
} = require('./gulp');

const server = series(serve, watchFiles);
const copy = parallel(copyImages, copyFonts);
const common = parallel(css, template, js, copy);

exports.default = series(clean, parallel(common, copy), server);
exports.prod = series(clean, parallel(common, copyFonts, compressImages));
